import { View, WebView } from '@tarojs/components'
// import { useRouter } from '@tarojs/taro';
import { useWebStore } from '@/store/web';
import './index.scss'

export default function News() {

  const { url } = useWebStore()

  // const router = useRouter();
  // const url = decodeURIComponent(router.params.url!)



  return (
    <View className='page bg-[#F5F5F5] min-h-screen pb-safe-offset-8'>
      <WebView src={url || ''}></WebView>
    </View>
  )
}
